Use of python dictionary for maping the values of a column